home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Tool Chest / Dev.CD Feb 97 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSGXPrinting.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  1.0 KB  |  43 lines  |  [TEXT/CWIE]

  1. // MSGXPrinting.c
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // GX printing by Don Swatman
  6. // ©Apple Computer Inc 1996, all rights reserved.
  7.  
  8. #ifndef __MSGXPRINTING__
  9. #define __MSGXPRINTING__
  10.  
  11. #include "MSGlobals.h"
  12.  
  13. // Start up and finish printing
  14.  
  15. void InitGXIfPresent(void);
  16. void CleanUpGXIfPresent(void);
  17.  
  18. // Make any patches to the menu
  19. short ConvertMenuActualToGXMenu ( short theItem );
  20.  
  21. // Get a QD rect for a print page
  22. void GetRectOfPage( DPtr  theDoc,
  23.                                         Rect  *pageRect );
  24.  
  25. // Put up the GX Page Setup dialog
  26. Boolean DoGXPageSetup ( DPtr theDoc );
  27.  
  28. // Print a page
  29. OSErr GXPrintDocument ( DPtr    theDoc,
  30.                                                 Boolean askUser );
  31.  
  32. void DuplicateStyleTERec( TEHandle  hSourceTE,
  33.                                                     TEHandle *hDestTE,
  34.                                                     Rect     *destRect,
  35.                                                     GrafPtr   destPort );
  36.  
  37. void    AdjustMenusForGXPrintDialogs(Boolean dialogGoingUp);
  38. void    SetupGXEditMenuRec(gxEditMenuRecord *editMenuRec);
  39. OSErr PrintAShape(gxShape currentShape, long refCon);
  40. OSErr GXPrintLoop(DPtr theDoc);
  41.  
  42. #endif
  43.